//package com.huawei.codearts.tools.tool;
//
//import io.etcd.jetcd.ByteSequence;
//import io.etcd.jetcd.Lock;
//import io.etcd.jetcd.lock.LockResponse;
//import io.etcd.jetcd.lock.UnlockResponse;
//
//import java.util.concurrent.CompletableFuture;
//import java.util.concurrent.Executors;
//import java.util.concurrent.locks.Condition;
//
///**
// @program: distributed-lock
// @description: 各种分布式锁的基类，模板方法
// **/
//public class AbstractLock implements Lock {
////    @Override
////    public void lock() {
////        throw new RuntimeException(“请自行实现该方法”);
////    }
////    @Override
////    public void lockInterruptibly() throws InterruptedException {
////        throw new RuntimeException(“请自行实现该方法”);
////    }
////
////    @Override
////    public boolean tryLock() {
////        throw new RuntimeException(“请自行实现该方法”);
////    }
////
////    @Override
////    public boolean tryLock(long time, TimeUnit unit) throws InterruptedException {
////        throw new RuntimeException(“请自行实现该方法”);
////    }
////
////    @Override
////    public void unlock() {
////        throw new RuntimeException(“请自行实现该方法”);
////    }
////
////    @Override
////    public Condition newCondition() {
////        throw new RuntimeException(“请自行实现该方法”);
////    }
//
//    @Override
//    public CompletableFuture<LockResponse> lock(ByteSequence byteSequence, long l) {
//        return null;
//    }
//
//    @Override
//    public CompletableFuture<UnlockResponse> unlock(ByteSequence byteSequence) {
//        return null;
//    }
//}
